package cn.lopr.im.android.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;

/**
 * @author shuangyang7
 * @date 2021/1/3 22:50
 */
@Entity
public class HomeDialogue {
    @Id(autoincrement = true) //主键  //autoincrement 开启自增
    private Long id;

    private String toUser;
    private String fromUser;
    //private int isReadNum;
    //private Long messageId;
    private Date lastUpdate;
    private int isDelete;

    @Generated(hash = 635648421)
    public HomeDialogue(Long id, String toUser, String fromUser, Date lastUpdate,
                        int isDelete) {
        this.id = id;
        this.toUser = toUser;
        this.fromUser = fromUser;
        this.lastUpdate = lastUpdate;
        this.isDelete = isDelete;
    }

    @Generated(hash = 996898246)
    public HomeDialogue() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getToUser() {
        return this.toUser;
    }

    public void setToUser(String toUser) {
        this.toUser = toUser;
    }

    public String getFromUser() {
        return this.fromUser;
    }

    public void setFromUser(String fromUser) {
        this.fromUser = fromUser;
    }

    public Date getLastUpdate() {
        return this.lastUpdate;
    }

    public void setLastUpdate(Date lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

    public int getIsDelete() {
        return this.isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }


}
